package com.slj.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 类别表
 * </p>
 *
 * @author 礼俊
 * @since 2025-09-20 22:46
 */
@Getter
@Setter
@ToString
@TableName("categories")
@Schema(name = "Categories", description = "类别表")
public class Categories extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类别唯一标识符
     */
    @Schema(description = "类别唯一标识符")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 类别名称
     */
    @TableField("category_name")
    @Schema(description = "类别名称")
    private String categoryName;

    /**
     * 类别描述
     */
    @TableField("description")
    @Schema(description = "类别描述")
    private String description;
}
